package databases

import (
	"os"
	"path/filepath"
	"stforum/global"

	"github.com/dingdinglz/dingtools/dingdb/dingnuts"
)

func StartSettingDatabases() {
	wd, _ := os.Getwd()
	var err error
	global.SettingDB, err = dingnuts.NewDingNuts(filepath.Join(wd, "data", "setting"))
	if err != nil {
		global.Logger.Error("启动设置数据库失败！", err.Error())
		os.Exit(1)
	}
	//global.MySqlDB = global.SettingDB.GetBucket("mysql")
}
